Day 17 - Regular expressions - Groups
60
Exercise 17.03
There are three lines in the file simple.log where a request received an HTTP 500 status code, for
example
66.249.73.135 [18/May/2015:15:05:42 GET /misc/Title.php.txt HTTP/1.1 500 - -
Find them and print the IP addresses of each client in a single comma-separated line (i.e. <IP number
1>,<IP number 2>,<IP number 3>)
Go to solution
I think you should be proud of yourself, you made it so far and you are still alive. Are you? Hello?
Just joking, I’m pretty sure you followed along and that the exercises made you appreciate groups
even more. This chapter concludes our journey in the land of regular expressions, it’s time to get
into bash scripting. I warmly recommend to stop here for now, grab a drink, enjoy a walk, a game,
something relaxing. See you in the next part of the book!
Suggested film for the evening: The Avengers (2012) - Groups are powerful, and when your Unix
system is attacked by aliens from the outer space you need the most powerful one.